package leetcode.code0312;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution312 implements IDebug {

	public abstract int maxCoins(int[] nums);

	@Override
	public void debug1() {
		String str = "[3,1,5,8]";
		int e = 167;
		int r = this.maxCoins(HelpDebug.str2array3(str));
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String str = "[1,5]";
		int e = 10;
		int r = this.maxCoins(HelpDebug.str2array3(str));
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		String str = "[9]";
		int e = 9;
		int r = this.maxCoins(HelpDebug.str2array3(str));
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		String str = "[9,8]";
		int e = 81;
		int r = this.maxCoins(HelpDebug.str2array3(str));
		HelpDebug.compare(e, r);
	}
	public void debug5() {
		String str = "[9,76,64,21,97,60]";
		int e = 1086136;
		int r = this.maxCoins(HelpDebug.str2array3(str));
		HelpDebug.compare(e, r);
	}

}
